package com.clkj.xiuzheng.pojo.shangcheng;



import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
* 
* @TableName t_xz_user
*/
@ApiModel( value ="t_xz_user" )
@Table( name ="t_xz_user" )
public class SUser implements Serializable {

    /**
    * 用户id
    */
    @Id
    @Column(name = "user_id" ,updatable = false)
    @ApiModelProperty("用户id")
    private Integer userId;


    /**
     * 用户名称
     */
    @Column(name = "user_name" )
    @ApiModelProperty( value="用户名称")
    private String userName;

    /**
     * 用户手机号
     */
    @Column(name = "user_phone" )
    @ApiModelProperty( value="用户手机号")
    private String userPhone;

    /**
     * 用户密码
     */
    @Column(name = "user_password" )
    @ApiModelProperty( value="用户密码")
    private String userPassword;

    /**
     * 用户积分
     */
    @Column(name = "user_score" )
    @ApiModelProperty( value="用户积分")
    private Integer userScore;

    /**
     * 用户的邀请码
     */
    @Column(name = "invite_code" )
    @ApiModelProperty( value="用户的邀请码")
    private String inviteCode;

    /**
     * 用户余额
     */
    @Column(name = "user_balance" )
    @ApiModelProperty( value="用户余额")
    private Double userBalance;

    /**
     * 用户钻石数量
     */
    @Column(name = "diamond_num" )
    @ApiModelProperty( value="用户钻石数量")
    private Integer diamondNum;

    /**
     * 微信openid
     */
    @Column(name = "open_id" )
    @ApiModelProperty( value="微信openid")
    private String openId;

    /**
     * 公司id
     */
    @Column(name = "company_id" )
    @ApiModelProperty( value="公司id")
    private Integer companyId;

    /**
     * 用户状态 0普通用户 1 会员  2推广员
     */
    @Column(name = "user_type" )
    @ApiModelProperty( value="用户状态 0普通用户 1 会员  2推广员")
    private Integer userType;

    /**
     * 会员等级
     */
    @Column(name = "vip_level" )
    @ApiModelProperty( value="会员等级")
    private Integer vipLevel;

    /**
     * 创建时间
     */
    @Column(name = "create_time" )
    @ApiModelProperty( value="创建时间")
    private String createTime;

    /**
     * 用户头像
     */
    @Column(name = "user_img" )
    @ApiModelProperty( value="用户头像")
    private String userImg;
    /**
     * 上级推广员id
     */
    @Column(name = "parent_id" )
    @ApiModelProperty( value="上级推广员id")
    private Integer parentId;

    /**
     * 使用总积分
     */
    @Column(name = "used_points" )
    @ApiModelProperty( value="使用总积分")
    private Integer usedPoints;

    /**
     * 上级推广用户
     */
    @Column(name = "share_id" )
    @ApiModelProperty( value="上级推广用户")
    private Integer shareId;


    /**
     * 上级推广用户
     */
    @Column(name = "has_zg" )
    @ApiModelProperty( value="是否有成为推广员的资格，0没有，1为有")
    private Integer hasZg;

    /**
     * 我的邀请码
     */
    @Column(name = "yqm" )
    @ApiModelProperty( value="我的邀请码")
    private String  yqm;

    /**
     * 上级推广员name
     */
    @Transient
    private String promoterName;

    @Transient
    private String companyName;

    @Transient
    private String shareName;

    @Transient
    private Double totalMoney;
    @Transient
    private Double grantMoney;
    @Transient
    private Integer rechargeNum;
    @Transient
    private Double rechargeMoney;



    public String getPromoterName() {
        return promoterName;
    }

    public void setPromoterName(String promoterName) {
        this.promoterName = promoterName;
    }


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public Integer getUserScore() {
        return userScore;
    }

    public void setUserScore(Integer userScore) {
        this.userScore = userScore;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    public Double getUserBalance() {
        return userBalance;
    }

    public void setUserBalance(Double userBalance) {
        this.userBalance = userBalance;
    }

    public Integer getDiamondNum() {
        return diamondNum;
    }

    public void setDiamondNum(Integer diamondNum) {
        this.diamondNum = diamondNum;
    }


    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getVipLevel() {
        return vipLevel;
    }

    public void setVipLevel(Integer vipLevel) {
        this.vipLevel = vipLevel;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getUsedPoints() {
        return usedPoints;
    }

    public void setUsedPoints(Integer usedPoints) {
        this.usedPoints = usedPoints;
    }

    public Integer getShareId() {
        return shareId;
    }

    public void setShareId(Integer shareId) {
        this.shareId = shareId;
    }

    public Integer getHasZg() {
        return hasZg;
    }

    public void setHasZg(Integer hasZg) {
        this.hasZg = hasZg;
    }

    public String getShareName() {
        return shareName;
    }

    public void setShareName(String shareName) {
        this.shareName = shareName;
    }

    public String getYqm() {
        return yqm;
    }

    public void setYqm(String yqm) {
        this.yqm = yqm;
    }

    public Double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Double totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Double getGrantMoney() {
        return grantMoney;
    }

    public void setGrantMoney(Double grantMoney) {
        this.grantMoney = grantMoney;
    }

    public Integer getRechargeNum() {
        return rechargeNum;
    }

    public void setRechargeNum(Integer rechargeNum) {
        this.rechargeNum = rechargeNum;
    }

    public Double getRechargeMoney() {
        return rechargeMoney;
    }

    public void setRechargeMoney(Double rechargeMoney) {
        this.rechargeMoney = rechargeMoney;
    }
}
